package com.wgchao.authmanager.infrastructure.jpa.repository;

import com.wgchao.authmanager.infrastructure.jpa.entity.UserAuthoInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserAuthoInfoJpaRepository extends JpaRepository<UserAuthoInfo, Long>, JpaSpecificationExecutor<UserAuthoInfo> {

    List<UserAuthoInfo> findAllByUname(String uname);

    List<UserAuthoInfo> findAllByUnameAndAndProjectIdentify(String uname, String projectIdentify);
}
